package com.lysh.test.netty;

import io.netty.channel.Channel;
import lombok.extern.slf4j.Slf4j;

/**
 * @author liyishan
 * @date 2023/8/24 09:45
 * @apiNote
 */
@Slf4j
public  class MyServerHandler2 extends AbstractServerHandler<Object> {

    /**
     * ctx.writeAndFlush(Unpooled.copiedBuffer("歪比巴卜~茉莉~Are you good~马来西亚~", CharsetUtil.UTF_8));  收到消息String:PooledUnsafeDirectByteBuf(ridx: 0, widx: 46, cap: 2048)
     * @param channel
     * @param msg
     */
    @Override
    public void channelRead(Channel channel, Object msg) {
        log.info("收到消息String:"+msg);
    }

}
